This is the analysis script to prepare the data to run analyses for the project “Anxiety, depression and trauma symptom change during the COVID-19 pandemic: retrospective versus objective assessment” - Young et al (2020)
Script written by K Purves, K Thompson, C Huebel and M Davies. Email: kirstin.purves@kcl.ac.uk, katie.thompson@kcl.ac.uk, christopher.1.huebel@kcl.ac.uk, molly.davies@kcl.ac.uk
#Set up
Clear global environment
Retrieve the current date to use it for file endings to not overwrite files when one exports files
#Packages Install packages (if they are not available in your version of R)
Load packages
Registered S3 method overwritten by 'pryr':
method from
print.bytes Rcpp
For best results, restart R session and update pander using devtools:: or remotes::install_github('rapporter/pander')
Attaching package: 'polycor'
The following object is masked from 'package:psych':
polyserial
corrplot 0.84 loaded
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✓ ggplot2 3.3.2 ✓ purrr 0.3.4
✓ tibble 3.0.4 ✓ dplyr 1.0.2
✓ tidyr 1.1.2 ✓ stringr 1.4.0
✓ readr 1.3.1 ✓ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
x ggplot2::%+%() masks psych::%+%()
x ggplot2::alpha() masks psych::alpha()
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
x tibble::view() masks summarytools::view()
Define colours for plotting this are the standard coping colours
Choose in this chunk which palette to use 04.07.2020 - Default to 2 colour COPING palette
Set up ggplot theme for the plots
[1] 65223 641
[1] "Sample"
[2] "ID"
[3] "startDate.prepandemic"
[4] "Age_uncleaned"
[5] "Gender_unc"
[6] "Sex"
[7] "EduYrs"
[8] "demographics.college_or_university_degree"
[9] "demographics.a_levelsas_levels_or_equivalent"
[10] "demographics.o_levelsgcses_or_equivalent"
[11] "demographics.cses_or_equivalent"
[12] "demographics.nvq_or_hnd_or_hnc_or_equivalent"
[13] "Ethnicity_unc"
[14] "Gender_numeric"
[15] "Sex_numeric"
[16] "demographics.college_or_university_degree_numeric"
[17] "demographics.a_levelsas_levels_or_equivalent_numeric"
[18] "demographics.o_levelsgcses_or_equivalent_numeric"
[19] "demographics.cses_or_equivalent_numeric"
[20] "demographics.nvq_or_hnd_or_hnc_or_equivalent_numeric"
[21] "Ethnicity_numeric"
[22] "Gender"
[23] "Ethnicity"
[24] "Age"
[25] "age_category_numeric"
[26] "age_category"
[27] "highest_education_prepan_numeric"
[28] "highest_education_prepan"
[29] "employment.phd"
[30] "employment.masters_degree_or_equivalent"
[31] "employment.postgraduate_degree_or_equivalent"
[32] "employment.bachelors_degree_or_equivalent"
[33] "employment.a_levelsas_levels_or_equivalent"
[34] "employment.o_levelsgcses_or_equivalent"
[35] "employment.cses_or_equivalent"
[36] "employment.nvq_or_hnd_or_hnc_or_equivalent"
[37] "employment.government_work_key_workers"
[38] "employment.unemployed"
[39] "employment.zerohours_contract"
[40] "employment.stayathome_parent_or_carer"
[41] "employment.retired"
[42] "employment.student_gcse_or_a_level"
[43] "employment.student_university"
[44] "employment.became_unemployed"
[45] "employment.furloughed_or_paid_leave_government_funded"
[46] "employment.furloughed_or_paid_leave_company_funded"
[47] "employment.paid_leave_furloughed"
[48] "employment.fulltime_employed"
[49] "employment.parttime_employed"
[50] "employment.selfemployed"
[51] "employment.contract_or_freelance_work"
[52] "employment.small_business_owner"
[53] "employment.receiving_state_income"
[54] "employment.my_employment_status_has_not_changed"
[55] "employment.reduction_in_hours"
[56] "employment.reduction_in_salary"
[57] "employment.benefits_increased"
[58] "employment.benefits_decreased"
[59] "employment.became_employed"
[60] "employment.increased_hours"
[61] "employment.increased_salary"
[62] "employment.phd_numeric"
[63] "employment.masters_degree_or_equivalent_numeric"
[64] "employment.postgraduate_degree_or_equivalent_numeric"
[65] "employment.bachelors_degree_or_equivalent_numeric"
[66] "employment.a_levelsas_levels_or_equivalent_numeric"
[67] "employment.o_levelsgcses_or_equivalent_numeric"
[68] "employment.cses_or_equivalent_numeric"
[69] "employment.nvq_or_hnd_or_hnc_or_equivalent_numeric"
[70] "employment.government_work_key_workers_numeric"
[71] "employment.unemployed_numeric"
[72] "employment.zerohours_contract_numeric"
[73] "employment.stayathome_parent_or_carer_numeric"
[74] "employment.retired_numeric"
[75] "employment.student_gcse_or_a_level_numeric"
[76] "employment.student_university_numeric"
[77] "employment.became_unemployed_numeric"
[78] "employment.furloughed_or_paid_leave_government_funded_numeric"
[79] "employment.furloughed_or_paid_leave_company_funded_numeric"
[80] "employment.paid_leave_furloughed_numeric"
[81] "employment.fulltime_employed_numeric"
[82] "employment.parttime_employed_numeric"
[83] "employment.selfemployed_numeric"
[84] "employment.contract_or_freelance_work_numeric"
[85] "employment.small_business_owner_numeric"
[86] "employment.receiving_state_income_numeric"
[87] "employment.my_employment_status_has_not_changed_numeric"
[88] "employment.reduction_in_hours_numeric"
[89] "employment.reduction_in_salary_numeric"
[90] "employment.benefits_increased_numeric"
[91] "employment.benefits_decreased_numeric"
[92] "employment.became_employed_numeric"
[93] "employment.increased_hours_numeric"
[94] "employment.increased_salary_numeric"
[95] "highest_education_numeric"
[96] "highest_education"
[97] "employment_prior_covid_numeric"
[98] "employment_prior_covid"
[99] "employment_change_numeric"
[100] "employment_change"
[101] "key_worker_numeric"
[102] "key_worker"
[103] "anxiety_disorders_numeric"
[104] "anxiety_disorders"
[105] "mhd.specific_phobia_e.g._phobia_of_flying_numeric"
[106] "mhd.specific_phobia_e.g._phobia_of_flying"
[107] "mhd.social_anxiety_or_social_phobia_numeric"
[108] "mhd.social_anxiety_or_social_phobia"
[109] "agoraphobia_panic_disorder_numeric"
[110] "agoraphobia_panic_disorder"
[111] "depressive_disorders_numeric"
[112] "depressive_disorders"
[113] "eating_disorders_numeric"
[114] "eating_disorders"
[115] "obsessive_compulsive_disorders_numeric"
[116] "obsessive_compulsive_disorders"
[117] "psychotic_disorders_numeric"
[118] "psychotic_disorders"
[119] "mhd.mania_hypomania_bipolar_or_manicdepression_numeric"
[120] "mhd.mania_hypomania_bipolar_or_manicdepression"
[121] "mhd.posttraumatic_stress_disorder_ptsd_numeric"
[122] "mhd.posttraumatic_stress_disorder_ptsd"
[123] "autism_spectrum_disorder_numeric"
[124] "autism_spectrum_disorder"
[125] "mhd.attention_deficit_hyperactivity_disorder_numeric"
[126] "mhd.attention_deficit_hyperactivity_disorder"
[127] "mhd.personality_disorder_numeric"
[128] "mhd.personality_disorder"
[129] "personality_cluster_a_numeric"
[130] "personality_cluster_a"
[131] "personality_cluster_b_numeric"
[132] "personality_cluster_b"
[133] "personality_cluster_c_numeric"
[134] "personality_cluster_c"
[135] "depression_and_anxiety_numeric"
[136] "depression_and_anxiety"
[137] "restricting_vs_binge_eating_eating_disorders_numeric"
[138] "restricting_vs_binge_eating_eating_disorders"
[139] "bipolar_and_schizophrenia_numeric"
[140] "bipolar_and_schizophrenia"
[141] "control_numeric"
[142] "control"
[143] "disorders_total_count"
[144] "comorbidity_total_count_numeric"
[145] "comorbidity_total_count_factor_numeric"
[146] "comorbidity_total_count_factor"
[147] "mhd.none_of_the_above"
[148] "mhd.none_of_the_above.1"
[149] "gad.feeling_nervous_anxious_or_on_edge_prepan"
[150] "gad.control_worrying_stop_prepan"
[151] "gad.worrying_too_much_about_different_things_prepan"
[152] "gad.trouble_relaxing_prepan"
[153] "gad.sit_restless_hard_prepan"
[154] "gad.becoming_easily_annoyed_or_irritable_prepan"
[155] "gad.awful_feeling_afraid_happen_prepan"
[156] "gad.feeling_nervous_anxious_or_on_edge_prepan_numeric"
[157] "gad.control_worrying_stop_prepan_numeric"
[158] "gad.worrying_too_much_about_different_things_prepan_numeric"
[159] "gad.trouble_relaxing_prepan_numeric"
[160] "gad.sit_restless_hard_prepan_numeric"
[161] "gad.becoming_easily_annoyed_or_irritable_prepan_numeric"
[162] "gad.awful_feeling_afraid_happen_prepan_numeric"
[163] "gad.sum_score_prepan_raw"
[164] "na_per_person_gad_prepan"
[165] "gad.sum_score_prepan"
[166] "pcl.stressful_experience_repeated_images_prepan"
[167] "pcl.stressful_experience_upset_reminded_prepan"
[168] "pcl.stressful_situation_avoiding_activities_prepan"
[169] "pcl.cut_people_feeling_distant_prepan"
[170] "pcl.feeling_irritable_or_having_angry_outbursts_prepan"
[171] "pcl.difficulty_concentrating_prepan"
[172] "pcl.stressful_experience_repeated_images_prepan_numeric"
[173] "pcl.stressful_experience_upset_reminded_prepan_numeric"
[174] "pcl.stressful_situation_avoiding_activities_prepan_numeric"
[175] "pcl.cut_people_feeling_distant_prepan_numeric"
[176] "pcl.feeling_irritable_or_having_angry_outbursts_prepan_numeric"
[177] "pcl.difficulty_concentrating_prepan_numeric"
[178] "pcl.sum_score_prepan_raw"
[179] "na_per_person_pcl_prepan"
[180] "pcl.sum_score_prepan"
[181] "phq.little_interest_or_pleasure_in_doing_things_prepan"
[182] "phq.feeling_down_depressed_or_hopeless_prepan"
[183] "phq.staying_asleep_sleeping_trouble_prepan"
[184] "phq.feeling_tired_or_having_little_energy_prepan"
[185] "phq.poor_appetite_or_overeating_prepan"
[186] "phq.feeling_bad_failure_family_prepan"
[187] "phq.trouble_concentrating_reading_newspaper_prepan"
[188] "phq.moving_fidgety_noticed_opposite_prepan"
[189] "phq.dead_hurting_thoughts_prepan"
[190] "phq.little_interest_or_pleasure_in_doing_things_prepan_numeric"
[191] "phq.feeling_down_depressed_or_hopeless_prepan_numeric"
[192] "phq.staying_asleep_sleeping_trouble_prepan_numeric"
[193] "phq.feeling_tired_or_having_little_energy_prepan_numeric"
[194] "phq.poor_appetite_or_overeating_prepan_numeric"
[195] "phq.feeling_bad_failure_family_prepan_numeric"
[196] "phq.trouble_concentrating_reading_newspaper_prepan_numeric"
[197] "phq.moving_fidgety_noticed_opposite_prepan_numeric"
[198] "phq.dead_hurting_thoughts_prepan_numeric"
[199] "phq.sum_score_prepan_raw"
[200] "na_per_person_phq_prepan"
[201] "phq.missing_only_suicide_item_prepan"
[202] "phq.sum_score_prepan"
[203] "phq.sum_score_8items_prepan"
[204] "ocir.i_repeatedly_check_doors_windows_drawers_etc_prepan"
[205] "ocir.arranged_things_change_upset_prepan"
[206] "ocir.repeat_feel_numbers_prepan"
[207] "ocir.clean_simply_wash_feel_prepan"
[208] "ocir.mind_upset_unpleasant_thoughts_prepan"
[209] "ocir.afraid_avoid_throwing_things_prepan"
[210] "ocir.light_switches_water_taps_prepan"
[211] "ocir.arranged_things_prepan"
[212] "ocir.good_feel_bad_numbers_prepan"
[213] "ocir.hands_longer_wash_prepan"
[214] "ocir.saved_things_prepan"
[215] "ocir.frequently_difficulty_rid_nasty_prepan"
[216] "ocir.i_check_things_more_often_than_necessary_prepan"
[217] "ocir.arranged_properly_objects_upset_prepan"
[218] "ocir.feel_compelled_count_things_prepan"
[219] "ocir.strangers_touch_touched_difficult_prepan"
[220] "ocir.control_difficult_find_thoughts_prepan"
[221] "ocir.i_collect_things_i_dont_need_prepan"
[222] "ocir.i_repeatedly_check_doors_windows_drawers_etc_prepan_numeric"
[223] "ocir.arranged_things_change_upset_prepan_numeric"
[224] "ocir.repeat_feel_numbers_prepan_numeric"
[225] "ocir.clean_simply_wash_feel_prepan_numeric"
[226] "ocir.mind_upset_unpleasant_thoughts_prepan_numeric"
[227] "ocir.afraid_avoid_throwing_things_prepan_numeric"
[228] "ocir.light_switches_water_taps_prepan_numeric"
[229] "ocir.arranged_things_prepan_numeric"
[230] "ocir.good_feel_bad_numbers_prepan_numeric"
[231] "ocir.hands_longer_wash_prepan_numeric"
[232] "ocir.saved_things_prepan_numeric"
[233] "ocir.frequently_difficulty_rid_nasty_prepan_numeric"
[234] "ocir.i_check_things_more_often_than_necessary_prepan_numeric"
[235] "ocir.arranged_properly_objects_upset_prepan_numeric"
[236] "ocir.feel_compelled_count_things_prepan_numeric"
[237] "ocir.strangers_touch_touched_difficult_prepan_numeric"
[238] "ocir.control_difficult_find_thoughts_prepan_numeric"
[239] "ocir.i_collect_things_i_dont_need_prepan_numeric"
[240] "ocir.sum_score_prepan_raw"
[241] "na_per_person_ocir_prepan"
[242] "ocir.sum_score_prepan"
[243] "startDate.coping"
[244] "gad.problems_made_difficult_care"
[245] "gad.pandemic_felt_feelings"
[246] "gad.feeling_nervous_anxious_or_on_edge_retro"
[247] "gad.control_worrying_stop_retro"
[248] "gad.worrying_too_much_about_different_things_retro"
[249] "gad.trouble_relaxing_retro"
[250] "gad.sit_restless_hard_retro"
[251] "gad.becoming_easily_annoyed_or_irritable_retro"
[252] "gad.awful_feeling_afraid_happen_retro"
[253] "gad.feeling_nervous_anxious_or_on_edge_base"
[254] "gad.control_worrying_stop_base"
[255] "gad.worrying_too_much_about_different_things_base"
[256] "gad.trouble_relaxing_base"
[257] "gad.sit_restless_hard_base"
[258] "gad.becoming_easily_annoyed_or_irritable_base"
[259] "gad.awful_feeling_afraid_happen_base"
[260] "gad.problems_made_difficult_care_numeric"
[261] "gad.pandemic_felt_feelings_numeric"
[262] "gad.feeling_nervous_anxious_or_on_edge_retro_numeric"
[263] "gad.control_worrying_stop_retro_numeric"
[264] "gad.worrying_too_much_about_different_things_retro_numeric"
[265] "gad.trouble_relaxing_retro_numeric"
[266] "gad.sit_restless_hard_retro_numeric"
[267] "gad.becoming_easily_annoyed_or_irritable_retro_numeric"
[268] "gad.awful_feeling_afraid_happen_retro_numeric"
[269] "gad.feeling_nervous_anxious_or_on_edge_base_numeric"
[270] "gad.control_worrying_stop_base_numeric"
[271] "gad.worrying_too_much_about_different_things_base_numeric"
[272] "gad.trouble_relaxing_base_numeric"
[273] "gad.sit_restless_hard_base_numeric"
[274] "gad.becoming_easily_annoyed_or_irritable_base_numeric"
[275] "gad.awful_feeling_afraid_happen_base_numeric"
[276] "gad.sum_score_retro_raw"
[277] "gad.sum_score_base_raw"
[278] "na_per_person_gad_base"
[279] "na_per_person_gad_retro"
[280] "gad.sum_score_base"
[281] "gad.sum_score_retro"
[282] "pcl.stressful_experience_repeated_images_base"
[283] "pcl.stressful_experience_upset_reminded_base"
[284] "pcl.stressful_situation_avoiding_activities_base"
[285] "pcl.cut_people_feeling_distant_base"
[286] "pcl.feeling_irritable_or_having_angry_outbursts_base"
[287] "pcl.difficulty_concentrating_base"
[288] "pcl.stressful_experience_repeated_images_retro"
[289] "pcl.stressful_experience_upset_reminded_retro"
[290] "pcl.stressful_situation_avoiding_activities_retro"
[291] "pcl.cut_people_feeling_distant_retro"
[292] "pcl.feeling_irritable_or_having_angry_outbursts_retro"
[293] "pcl.difficulty_concentrating_retro"
[294] "pcl.stressful_experience_repeated_images_base_numeric"
[295] "pcl.stressful_experience_upset_reminded_base_numeric"
[296] "pcl.stressful_situation_avoiding_activities_base_numeric"
[297] "pcl.cut_people_feeling_distant_base_numeric"
[298] "pcl.feeling_irritable_or_having_angry_outbursts_base_numeric"
[299] "pcl.difficulty_concentrating_base_numeric"
[300] "pcl.stressful_experience_repeated_images_retro_numeric"
[301] "pcl.stressful_experience_upset_reminded_retro_numeric"
[302] "pcl.stressful_situation_avoiding_activities_retro_numeric"
[303] "pcl.cut_people_feeling_distant_retro_numeric"
[304] "pcl.feeling_irritable_or_having_angry_outbursts_retro_numeric"
[305] "pcl.difficulty_concentrating_retro_numeric"
[306] "pcl.sum_score_retro_raw"
[307] "pcl.sum_score_base_raw"
[308] "na_per_person_pcl_base"
[309] "na_per_person_pcl_retro"
[310] "pcl.sum_score_base"
[311] "pcl.sum_score_retro"
[312] "phq.problems_made_difficult_care"
[313] "phq.pandemic_felt_feelings"
[314] "phq.little_interest_or_pleasure_in_doing_things_retro"
[315] "phq.feeling_down_depressed_or_hopeless_retro"
[316] "phq.staying_asleep_sleeping_trouble_retro"
[317] "phq.feeling_tired_or_having_little_energy_retro"
[318] "phq.poor_appetite_or_overeating_retro"
[319] "phq.feeling_bad_failure_family_retro"
[320] "phq.trouble_concentrating_reading_newspaper_retro"
[321] "phq.moving_fidgety_noticed_opposite_retro"
[322] "phq.dead_hurting_thoughts_retro"
[323] "phq.little_interest_or_pleasure_in_doing_things_base"
[324] "phq.feeling_down_depressed_or_hopeless_base"
[325] "phq.staying_asleep_sleeping_trouble_base"
[326] "phq.feeling_tired_or_having_little_energy_base"
[327] "phq.poor_appetite_or_overeating_base"
[328] "phq.feeling_bad_failure_family_base"
[329] "phq.trouble_concentrating_reading_newspaper_base"
[330] "phq.moving_fidgety_noticed_opposite_base"
[331] "phq.dead_hurting_thoughts_base"
[332] "phq.problems_made_difficult_care_numeric"
[333] "phq.pandemic_felt_feelings_numeric"
[334] "phq.little_interest_or_pleasure_in_doing_things_retro_numeric"
[335] "phq.feeling_down_depressed_or_hopeless_retro_numeric"
[336] "phq.staying_asleep_sleeping_trouble_retro_numeric"
[337] "phq.feeling_tired_or_having_little_energy_retro_numeric"
[338] "phq.poor_appetite_or_overeating_retro_numeric"
[339] "phq.feeling_bad_failure_family_retro_numeric"
[340] "phq.trouble_concentrating_reading_newspaper_retro_numeric"
[341] "phq.moving_fidgety_noticed_opposite_retro_numeric"
[342] "phq.dead_hurting_thoughts_retro_numeric"
[343] "phq.little_interest_or_pleasure_in_doing_things_base_numeric"
[344] "phq.feeling_down_depressed_or_hopeless_base_numeric"
[345] "phq.staying_asleep_sleeping_trouble_base_numeric"
[346] "phq.feeling_tired_or_having_little_energy_base_numeric"
[347] "phq.poor_appetite_or_overeating_base_numeric"
[348] "phq.feeling_bad_failure_family_base_numeric"
[349] "phq.trouble_concentrating_reading_newspaper_base_numeric"
[350] "phq.moving_fidgety_noticed_opposite_base_numeric"
[351] "phq.dead_hurting_thoughts_base_numeric"
[352] "phq.sum_score_retro_raw"
[353] "phq.sum_score_base_raw"
[354] "na_per_person_phq_retro"
[355] "phq.missing_only_suicide_item_retro"
[356] "na_per_person_phq_base"
[357] "phq.missing_only_suicide_item_base"
[358] "phq.sum_score_base"
[359] "phq.sum_score_8items_base"
[360] "phq.sum_score_retro"
[361] "phq.sum_score_8items_retro"
[362] "ocir.felt_pandemic_feelings"
[363] "ocir.i_repeatedly_check_doors_windows_drawers_etc_retro"
[364] "ocir.arranged_things_change_upset_retro"
[365] "ocir.repeat_feel_numbers_retro"
[366] "ocir.clean_simply_wash_feel_retro"
[367] "ocir.mind_upset_unpleasant_thoughts_retro"
[368] "ocir.afraid_avoid_throwing_things_retro"
[369] "ocir.light_switches_water_taps_retro"
[370] "ocir.arranged_things_retro"
[371] "ocir.good_feel_bad_numbers_retro"
[372] "ocir.hands_longer_wash_retro"
[373] "ocir.saved_things_retro"
[374] "ocir.frequently_difficulty_rid_nasty_retro"
[375] "ocir.i_check_things_more_often_than_necessary_retro"
[376] "ocir.arranged_properly_objects_upset_retro"
[377] "ocir.feel_compelled_count_things_retro"
[378] "ocir.strangers_touch_touched_difficult_retro"
[379] "ocir.control_difficult_find_thoughts_retro"
[380] "ocir.i_collect_things_i_dont_need_retro"
[381] "ocir.i_repeatedly_check_doors_windows_drawers_etc_base"
[382] "ocir.arranged_things_change_upset_base"
[383] "ocir.repeat_feel_numbers_base"
[384] "ocir.clean_simply_wash_feel_base"
[385] "ocir.mind_upset_unpleasant_thoughts_base"
[386] "ocir.afraid_avoid_throwing_things_base"
[387] "ocir.light_switches_water_taps_base"
[388] "ocir.arranged_things_base"
[389] "ocir.good_feel_bad_numbers_base"
[390] "ocir.hands_longer_wash_base"
[391] "ocir.saved_things_base"
[392] "ocir.frequently_difficulty_rid_nasty_base"
[393] "ocir.i_check_things_more_often_than_necessary_base"
[394] "ocir.arranged_properly_objects_upset_base"
[395] "ocir.feel_compelled_count_things_base"
[396] "ocir.strangers_touch_touched_difficult_base"
[397] "ocir.control_difficult_find_thoughts_base"
[398] "ocir.i_collect_things_i_dont_need_base"
[399] "ocir.felt_pandemic_feelings_numeric"
[400] "ocir.i_repeatedly_check_doors_windows_drawers_etc_retro_numeric"
[401] "ocir.arranged_things_change_upset_retro_numeric"
[402] "ocir.repeat_feel_numbers_retro_numeric"
[403] "ocir.clean_simply_wash_feel_retro_numeric"
[404] "ocir.mind_upset_unpleasant_thoughts_retro_numeric"
[405] "ocir.afraid_avoid_throwing_things_retro_numeric"
[406] "ocir.light_switches_water_taps_retro_numeric"
[407] "ocir.arranged_things_retro_numeric"
[408] "ocir.good_feel_bad_numbers_retro_numeric"
[409] "ocir.hands_longer_wash_retro_numeric"
[410] "ocir.saved_things_retro_numeric"
[411] "ocir.frequently_difficulty_rid_nasty_retro_numeric"
[412] "ocir.i_check_things_more_often_than_necessary_retro_numeric"
[413] "ocir.arranged_properly_objects_upset_retro_numeric"
[414] "ocir.feel_compelled_count_things_retro_numeric"
[415] "ocir.strangers_touch_touched_difficult_retro_numeric"
[416] "ocir.control_difficult_find_thoughts_retro_numeric"
[417] "ocir.i_collect_things_i_dont_need_retro_numeric"
[418] "ocir.i_repeatedly_check_doors_windows_drawers_etc_base_numeric"
[419] "ocir.arranged_things_change_upset_base_numeric"
[420] "ocir.repeat_feel_numbers_base_numeric"
[421] "ocir.clean_simply_wash_feel_base_numeric"
[422] "ocir.mind_upset_unpleasant_thoughts_base_numeric"
[423] "ocir.afraid_avoid_throwing_things_base_numeric"
[424] "ocir.light_switches_water_taps_base_numeric"
[425] "ocir.arranged_things_base_numeric"
[426] "ocir.good_feel_bad_numbers_base_numeric"
[427] "ocir.hands_longer_wash_base_numeric"
[428] "ocir.saved_things_base_numeric"
[429] "ocir.frequently_difficulty_rid_nasty_base_numeric"
[430] "ocir.i_check_things_more_often_than_necessary_base_numeric"
[431] "ocir.arranged_properly_objects_upset_base_numeric"
[432] "ocir.feel_compelled_count_things_base_numeric"
[433] "ocir.strangers_touch_touched_difficult_base_numeric"
[434] "ocir.control_difficult_find_thoughts_base_numeric"
[435] "ocir.i_collect_things_i_dont_need_base_numeric"
[436] "ocir.sum_score_retro_raw"
[437] "ocir.sum_score_base_raw"
[438] "na_per_person_ocir_retro"
[439] "na_per_person_ocir_base"
[440] "ocir.sum_score_base"
[441] "ocir.sum_score_retro"
[442] "alsfrs.limb_weakness_noticed_past"
[443] "alsfrs.normal"
[444] "alsfrs.slow_or_sloppy_all_words_are_legible"
[445] "alsfrs.not_all_words_are_legible"
[446] "alsfrs.able_to_grip_pen"
[447] "alsfrs.unable_to_grip_pen"
[448] "alsfrs.have_you_noticed_any_difficulty_walking"
[449] "alsfrs.do_you_have_any_difficulty_climbing_stairs"
[450] "alsfrs.limb_weakness_noticed_past_numeric"
[451] "alsfrs.normal_numeric"
[452] "alsfrs.slow_or_sloppy_all_words_are_legible_numeric"
[453] "alsfrs.not_all_words_are_legible_numeric"
[454] "alsfrs.able_to_grip_pen_numeric"
[455] "alsfrs.unable_to_grip_pen_numeric"
[456] "alsfrs.have_you_noticed_any_difficulty_walking_numeric"
[457] "alsfrs.do_you_have_any_difficulty_climbing_stairs_numeric"
[458] "ess.felt_excessively_sleepy_past"
[459] "ess.sitting_and_reading"
[460] "ess.watching_tv"
[461] "ess.sitting_inactive_in_a_public_place"
[462] "ess.break_passenger_car_hour"
[463] "ess.afternoon_rest_circumstances_lying"
[464] "ess.sitting_and_talking_to_someone"
[465] "ess.sitting_quietly_after_a_lunch_without_alcohol"
[466] "ess.car_minutes_stopped_traffic"
[467] "ess.insomnia"
[468] "ess.narcolepsy"
[469] "ess.rem_sleep_behaviour_disorder"
[470] "ess.restless_legs_syndrome"
[471] "ess.sleep_apnea"
[472] "ess.sleep_terrors"
[473] "ess.sleepwalking"
[474] "ess.other"
[475] "ess.none"
[476] "ess.felt_excessively_sleepy_past_numeric"
[477] "ess.sitting_and_reading_numeric"
[478] "ess.watching_tv_numeric"
[479] "ess.sitting_inactive_in_a_public_place_numeric"
[480] "ess.break_passenger_car_hour_numeric"
[481] "ess.afternoon_rest_circumstances_lying_numeric"
[482] "ess.sitting_and_talking_to_someone_numeric"
[483] "ess.sitting_quietly_after_a_lunch_without_alcohol_numeric"
[484] "ess.car_minutes_stopped_traffic_numeric"
[485] "ess.insomnia_numeric"
[486] "ess.narcolepsy_numeric"
[487] "ess.rem_sleep_behaviour_disorder_numeric"
[488] "ess.restless_legs_syndrome_numeric"
[489] "ess.sleep_apnea_numeric"
[490] "ess.sleep_terrors_numeric"
[491] "ess.sleepwalking_numeric"
[492] "ess.other_numeric"
[493] "ess.none_numeric"
[494] "midas.headaches_suffered_past_month"
[495] "midas.days_past_month_miss_work_school"
[496] "midas.days_past_month_work_school_half_productivity"
[497] "midas.days_past_month_miss_housework"
[498] "midas.days_past_month_housework_half_productivity"
[499] "midas.days_past_month_miss_social_activities"
[500] "midas.headaches_suffered_past_month_numeric"
[501] "midas.days_past_month_miss_work_school_numeric"
[502] "midas.days_past_month_work_school_half_productivity_numeric"
[503] "midas.days_past_month_miss_housework_numeric"
[504] "midas.days_past_month_housework_half_productivity_numeric"
[505] "midas.days_past_month_miss_social_activities_numeric"
[506] "nmss.ability_taste_food_smell"
[507] "nmss.severe_taste_smell_loss"
[508] "nmss.ability_taste_food_smell_numeric"
[509] "nmss.severe_taste_smell_loss_numeric"
[510] "nmsw.drink_problems_choking_difficulty"
[511] "nmsw.regularly_night_pass_urine"
[512] "nmsw.sex_difficult_finding"
[513] "nmsw.weak_standing_feeling_light"
[514] "nmsw.acting_moving_sleep_talking"
[515] "nmsw.double_vision"
[516] "nmsw.drink_problems_choking_difficulty_numeric"
[517] "nmsw.regularly_night_pass_urine_numeric"
[518] "nmsw.sex_difficult_finding_numeric"
[519] "nmsw.weak_standing_feeling_light_numeric"
[520] "nmsw.acting_moving_sleep_talking_numeric"
[521] "nmsw.double_vision_numeric"
[522] "tinnitus.ears_noises_minutes_head"
[523] "tinnitus.ears_noises_minutes_head_frequency"
[524] "tinnitus.noises_worry_worst_upset"
[525] "tinnitus.ears_noises_minutes_head_numeric"
[526] "tinnitus.ears_noises_minutes_head_frequency_numeric"
[527] "tinnitus.noises_worry_worst_upset_numeric"
[528] "ID.dup"
[529] "prepandemic_january_31_numeric"
[530] "prepandemic_january_31"
[531] "prepandemic_march_1_numeric"
[532] "prepandemic_march_1"
[533] "prepandemic_march_23_numeric"
[534] "prepandemic_march_23"
[535] "time_diff_coping_lockdown_march_23"
[536] "time_diff_coping_awareness_march_1"
[537] "time_diff_coping_first_case_uk_jan_31"
[538] "time_diff_signup_lockdown_march_23"
[539] "time_diff_signup_awareness_march_1"
[540] "time_diff_signup_first_case_uk_jan_31"
[541] "time_diff_sign_up_coping"
[542] "phq.diff_score_retro_prepan"
[543] "phq.diff_score_base_prepan"
[544] "phq.diff_score_base_retro"
[545] "gad.diff_score_retro_prepan"
[546] "gad.diff_score_base_prepan"
[547] "gad.diff_score_base_retro"
[548] "pcl.diff_score_base_prepan"
[549] "ocir.diff_score_retro_prepan"
[550] "ocir.diff_score_base_prepan"
[551] "ocir.diff_score_base_retro"
[552] "data_group_phq_numeric"
[553] "data_group_phq"
[554] "data_group_gad_numeric"
[555] "data_group_gad"
[556] "data_group_pcl_numeric"
[557] "data_group_pcl"
[558] "data_group_ocir_numeric"
[559] "data_group_ocir"
[560] "respiratory.breath_diarrhoea_fatigue_fever"
[561] "respiratory.worst_ill_feel"
[562] "respiratory.persistent_cough"
[563] "respiratory.skipping_meals_because_you_felt_unwell"
[564] "respiratory.was_your_sense_of_smell_impaired"
[565] "respiratory.was_your_sense_of_taste_impaired"
[566] "respiratory.feeling_tiredfatigued"
[567] "respiratory.throat_swab_coronavirus_nose"
[568] "respiratory.throat_swab_test_nose"
[569] "respiratory.coronavirus_antibody_test"
[570] "respiratory.results_antibody_test"
[571] "respiratory.breath_diarrhoea_fatigue_fever_numeric"
[572] "respiratory.worst_ill_feel_numeric"
[573] "respiratory.persistent_cough_numeric"
[574] "respiratory.skipping_meals_because_you_felt_unwell_numeric"
[575] "respiratory.was_your_sense_of_smell_impaired_numeric"
[576] "respiratory.was_your_sense_of_taste_impaired_numeric"
[577] "respiratory.feeling_tiredfatigued_numeric"
[578] "respiratory.throat_swab_coronavirus_nose_numeric"
[579] "respiratory.throat_swab_test_nose_numeric"
[580] "respiratory.coronavirus_antibody_test_numeric"
[581] "respiratory.results_antibody_test_numeric"
[582] "respiratory.anosmia_binary"
[583] "respiratory.pcough_binary"
[584] "respiratory.fatigue_binary"
[585] "respiratory.skipped_meals_binary"
[586] "Sex_respiratory"
[587] "Age_respiratory"
[588] "covid_symptoms"
[589] "covid_probability"
[590] "covid_odds_ratio"
[591] "covid_odds_ratio_50_numeric"
[592] "covid_odds_ratio_50"
[593] "covid_probable_case_incl_screening_numeric"
[594] "covid_probable_case_incl_screening"
[595] "COPING_ID"
[596] "Birthyear_unc"
[597] "Birthmonth"
[598] "Birthday"
[599] "Birthyear_unc_numeric"
[600] "Birthmonth_numeric"
[601] "Birthday_numeric"
[602] "Birthyear_numeric"
[603] "Birthdate"
[604] "Cohort"
[605] "Ethnicity.unc"
[606] "Cohort_numeric"
[607] "Ethnicity.unc_numeric"
[608] "Ethnicity_full"
[609] "Transgender_uncleaned"
[610] "Transgender_uncleaned_numeric"
[611] "employment.what_is_your_highest_level_of_education"
[612] "employment.what_is_your_highest_level_of_education_numeric"
[613] "respiratory.coronavirus_week_antibody_test"
[614] "respiratory.coronavirus_week_antibody_test_numeric"
[615] "covid_test_positive_double_numeric"
[616] "covid_test_positive_double"
[617] "gad.covid_test_positive_numeric"
[618] "covid_test_positive"
[619] "age_category_collapsed_numeric"
[620] "age_category_collapsed"
[621] "age_category_collapsed_reordered"
[622] "Gender_collapsed_numeric"
[623] "Gender_collapsed"
[624] "Ethnicity_collapsed_numeric"
[625] "Ethnicity_collapsed"
[626] "Disorder_hierarchical_psychosis_numeric"
[627] "Disorder_hierarchical_psychosis"
[628] "Disorder_hierarchical_numeric"
[629] "Disorder_hierarchical"
[630] "gad.change_binary_numeric"
[631] "gad.change_binary"
[632] "phq.change_binary_numeric"
[633] "phq.change_binary"
[634] "ocir.change_binary_numeric"
[635] "ocir.change_binary"
[636] "prepandemic_3_months_numeric"
[637] "prepandemic_3_months"
[638] "prepandemic_6_months_numeric"
[639] "prepandemic_6_months"
[640] "prepandemic_9_months_numeric"
[641] "prepandemic_9_months"
[1] "gad.sum_score_prepan" "pcl.sum_score_prepan"
[3] "phq.sum_score_prepan" "phq.sum_score_8items_prepan"
[5] "ocir.sum_score_prepan" "gad.sum_score_base"
[7] "gad.sum_score_retro" "pcl.sum_score_base"
[9] "pcl.sum_score_retro" "phq.sum_score_base"
[11] "phq.sum_score_8items_base" "phq.sum_score_retro"
[13] "phq.sum_score_8items_retro" "ocir.sum_score_base"
[15] "ocir.sum_score_retro"
[1] "phq.sum_score_prepan" "phq.sum_score_base" "phq.sum_score_retro"
[1] "gad.sum_score_prepan" "gad.sum_score_base" "gad.sum_score_retro"
[1] "ocir.sum_score_prepan" "ocir.sum_score_base" "ocir.sum_score_retro"
[1] "pcl.sum_score_prepan" "pcl.sum_score_base" "pcl.sum_score_retro"
[1] "phq.diff_score_retro_prepan" "phq.diff_score_base_prepan"
[3] "phq.diff_score_base_retro" "gad.diff_score_retro_prepan"
[5] "gad.diff_score_base_prepan" "gad.diff_score_base_retro"
[7] "pcl.diff_score_base_prepan" "ocir.diff_score_retro_prepan"
[9] "ocir.diff_score_base_prepan" "ocir.diff_score_base_retro"
[1] "phq.diff_score_retro_prepan" "phq.diff_score_base_prepan"
[3] "phq.diff_score_base_retro"
[1] "gad.diff_score_retro_prepan" "gad.diff_score_base_prepan"
[3] "gad.diff_score_base_retro"
[1] "ocir.diff_score_retro_prepan" "ocir.diff_score_base_prepan"
[3] "ocir.diff_score_base_retro"
Exclude GLAD/EDGI individuals that didn’t take part in COPING Exclude individuals with NA for the MHD categories Individuals with NAs for age/gender have already been excluded in pre-processing script, but they get excluded here to be safe and to double check previous programming.
[1] 65223 641
[1] 31884 641
[1] 33339
++MD: These ‘data availability’ chunks caused my R to crash, so I’m hashing them out for now. Others can test if it works for them and unhash as needed, otherwise I think they should be removed.
Data availability GAD
Data availability PHQ
Data availability PCL
Data availability OCI-R
Eating Disorders Genetics Initative Genetic Links to Anxiety and Depression National BioResource Rapid Assessment of MP
Frequencies
dat$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
EDGI 65 0.20 0.20 0.20 0.20
GLAD 11722 36.76 36.97 36.76 36.97
NBR 13029 40.86 77.83 40.86 77.83
RAMP 7068 22.17 100.00 22.17 100.00
<NA> 0 0.00 100.00
Total 31884 100.00 100.00 100.00 100.00
Frequencies
dat$disorders_total_count
Type: Numeric
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
0 12386 38.85 38.85 38.85 38.85
1 5527 17.33 56.18 17.33 56.18
2 8340 26.16 82.34 26.16 82.34
3 3337 10.47 92.81 10.47 92.81
4 1393 4.37 97.17 4.37 97.17
5 569 1.78 98.96 1.78 98.96
6 239 0.75 99.71 0.75 99.71
7 64 0.20 99.91 0.20 99.91
8 23 0.07 99.98 0.07 99.98
9 6 0.02 100.00 0.02 100.00
<NA> 0 0.00 100.00
Total 31884 100.00 100.00 100.00 100.00
#HR
#SB - Impute no change prepandemic scores
[1] 21 11 16 10 1 4 13 14 11 0 9 16 8 7 14 14 4 5 9 9 21 19 4 7 7
[26] 14 17 18 13 21
[1] NA 2 9 5 NA 21 NA NA 3 NA 3 NA 3 3 13 NA 3 0 NA 5 15 17 NA 2 4
[26] 4 15 7 4 18
[1] No different Much worse A little worse A little worse No different
[6] Much better No different No different A little worse No different
5 Levels: Much worse A little worse No different ... Much better
[1] 3 1 2 2 3 5 3 3 2 3
[1] 21 11 16 10 1 4 13 14 11 0 9 16 8 7 14 14 4 5 9 9 21 19 4 7 7
[26] 14 17 18 13 21
[1] 21 2 9 5 1 21 13 14 3 0 3 16 3 3 13 14 3 0 9 5 15 17 4 2 4
[26] 4 15 7 4 18
[1] 22 9 15 11 0 9 23 23 11 1 20 18 15 4 11 15 12 10 17 11 24 27 6 3 3
[26] 8 13 21 8 26
[1] 23 1 7 7 NA 20 18 23 5 NA 3 NA 7 3 11 NA 12 2 NA 6 19 27 NA 1 NA
[26] 3 14 9 5 21
[1] A little worse Much worse A little worse A little worse
[5] No different A little better A little worse A little worse
[9] A little worse No different
5 Levels: Much worse A little worse No different ... Much better
[1] 2 1 2 2 3 4 2 2 2 3
[1] 22 9 15 11 0 9 23 23 11 1 20 18 15 4 11 15 12 10 17 11 24 27 6 3 3
[26] 8 13 21 8 26
[1] 23 1 7 7 0 20 18 23 5 1 3 18 7 3 11 15 12 2 17 6 19 27 6 1 3
[26] 3 14 9 5 21
#Baseline survey completion (N per month)
[1] "2020-04-30 20:51:40 UTC" "2020-04-30 18:55:12 UTC"
[3] "2020-04-30 19:02:04 UTC" "2020-04-30 18:59:37 UTC"
[5] "2020-05-01 10:02:34 UTC" "2020-04-30 22:16:01 UTC"
[7] "2020-04-30 20:36:37 UTC" "2020-04-30 18:57:33 UTC"
[9] "2020-05-01 08:54:01 UTC" "2020-04-30 21:47:03 UTC"
[11] "2020-04-30 19:10:42 UTC" "2020-04-30 19:29:36 UTC"
[13] "2020-04-30 19:20:42 UTC" "2020-05-01 15:09:23 UTC"
[15] "2020-04-30 18:59:55 UTC" "2020-05-04 16:40:21 UTC"
[17] "2020-05-19 10:34:16 UTC" "2020-04-30 19:11:26 UTC"
[19] "2020-05-01 05:04:57 UTC" "2020-04-30 19:18:30 UTC"
Warning in polychor(x, y, ML = ML, std.err = std.err): inadmissible correlation
set to -0.9999
Warning in polychor(x, y, ML = ML, std.err = std.err): inadmissible correlation
set to -0.9999
Warning in hetcor.data.frame(as.data.frame(dat[, mhd.items]), use =
"pairwise.complete.obs"): the correlation matrix has been adjusted to make it
positive-definite
Two-Step Estimates
Correlations/Type of Correlation:
depressive_disorders
depressive_disorders 1
anxiety_disorders 0.8438
eating_disorders 0.541
obsessive_compulsive_disorders 0.5429
psychotic_disorders 0.5074
mhd.mania_hypomania_bipolar_or_manicdepression 0.5528
mhd.posttraumatic_stress_disorder_ptsd 0.6016
autism_spectrum_disorder 0.4022
mhd.attention_deficit_hyperactivity_disorder 0.3752
mhd.personality_disorder 0.6441
control -0.8188
anxiety_disorders
depressive_disorders Polychoric
anxiety_disorders 1
eating_disorders 0.4988
obsessive_compulsive_disorders 0.638
psychotic_disorders 0.4571
mhd.mania_hypomania_bipolar_or_manicdepression 0.434
mhd.posttraumatic_stress_disorder_ptsd 0.5921
autism_spectrum_disorder 0.4387
mhd.attention_deficit_hyperactivity_disorder 0.4146
mhd.personality_disorder 0.5841
control -0.8066
eating_disorders
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders 1
obsessive_compulsive_disorders 0.5734
psychotic_disorders 0.3664
mhd.mania_hypomania_bipolar_or_manicdepression 0.3778
mhd.posttraumatic_stress_disorder_ptsd 0.391
autism_spectrum_disorder 0.3061
mhd.attention_deficit_hyperactivity_disorder 0.3366
mhd.personality_disorder 0.5257
control -0.6923
obsessive_compulsive_disorders
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders 1
psychotic_disorders 0.3923
mhd.mania_hypomania_bipolar_or_manicdepression 0.3995
mhd.posttraumatic_stress_disorder_ptsd 0.4531
autism_spectrum_disorder 0.4012
mhd.attention_deficit_hyperactivity_disorder 0.393
mhd.personality_disorder 0.5019
control -0.7356
psychotic_disorders
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders 1
mhd.mania_hypomania_bipolar_or_manicdepression 0.7099
mhd.posttraumatic_stress_disorder_ptsd 0.451
autism_spectrum_disorder 0.2978
mhd.attention_deficit_hyperactivity_disorder 0.3434
mhd.personality_disorder 0.609
control -0.7027
mhd.mania_hypomania_bipolar_or_manicdepression
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression 1
mhd.posttraumatic_stress_disorder_ptsd 0.3617
autism_spectrum_disorder 0.2819
mhd.attention_deficit_hyperactivity_disorder 0.3528
mhd.personality_disorder 0.5878
control -0.6942
mhd.posttraumatic_stress_disorder_ptsd
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression Polychoric
mhd.posttraumatic_stress_disorder_ptsd 1
autism_spectrum_disorder 0.2977
mhd.attention_deficit_hyperactivity_disorder 0.2873
mhd.personality_disorder 0.5137
control -0.6917
autism_spectrum_disorder
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression Polychoric
mhd.posttraumatic_stress_disorder_ptsd Polychoric
autism_spectrum_disorder 1
mhd.attention_deficit_hyperactivity_disorder 0.5708
mhd.personality_disorder 0.372
control -0.6338
mhd.attention_deficit_hyperactivity_disorder
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression Polychoric
mhd.posttraumatic_stress_disorder_ptsd Polychoric
autism_spectrum_disorder Polychoric
mhd.attention_deficit_hyperactivity_disorder 1
mhd.personality_disorder 0.3697
control -0.6369
mhd.personality_disorder
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression Polychoric
mhd.posttraumatic_stress_disorder_ptsd Polychoric
autism_spectrum_disorder Polychoric
mhd.attention_deficit_hyperactivity_disorder Polychoric
mhd.personality_disorder 1
control -0.7724
control
depressive_disorders Polychoric
anxiety_disorders Polychoric
eating_disorders Polychoric
obsessive_compulsive_disorders Polychoric
psychotic_disorders Polychoric
mhd.mania_hypomania_bipolar_or_manicdepression Polychoric
mhd.posttraumatic_stress_disorder_ptsd Polychoric
autism_spectrum_disorder Polychoric
mhd.attention_deficit_hyperactivity_disorder Polychoric
mhd.personality_disorder Polychoric
control 1
Standard Errors/Numbers of Observations:
depressive_disorders
depressive_disorders 31884
anxiety_disorders 0.00397
eating_disorders 0.01231
obsessive_compulsive_disorders 0.0117
psychotic_disorders 0.02145
mhd.mania_hypomania_bipolar_or_manicdepression 0.01593
mhd.posttraumatic_stress_disorder_ptsd 0.01074
autism_spectrum_disorder 0.0207
mhd.attention_deficit_hyperactivity_disorder 0.02626
mhd.personality_disorder 0.01499
control Inf
anxiety_disorders
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 0.01209
obsessive_compulsive_disorders 0.01057
psychotic_disorders 0.0202
mhd.mania_hypomania_bipolar_or_manicdepression 0.01556
mhd.posttraumatic_stress_disorder_ptsd 0.01035
autism_spectrum_disorder 0.01985
mhd.attention_deficit_hyperactivity_disorder 0.02525
mhd.personality_disorder 0.01397
control Inf
eating_disorders
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 0.0131
psychotic_disorders 0.02401
mhd.mania_hypomania_bipolar_or_manicdepression 0.0196
mhd.posttraumatic_stress_disorder_ptsd 0.01554
autism_spectrum_disorder 0.02537
mhd.attention_deficit_hyperactivity_disorder 0.02953
mhd.personality_disorder 0.01583
control 12.43
obsessive_compulsive_disorders
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 0.02268
mhd.mania_hypomania_bipolar_or_manicdepression 0.01856
mhd.posttraumatic_stress_disorder_ptsd 0.01415
autism_spectrum_disorder 0.02237
mhd.attention_deficit_hyperactivity_disorder 0.02703
mhd.personality_disorder 0.01581
control 1.765
psychotic_disorders
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 31884
mhd.mania_hypomania_bipolar_or_manicdepression 0.01643
mhd.posttraumatic_stress_disorder_ptsd 0.02092
autism_spectrum_disorder 0.03539
mhd.attention_deficit_hyperactivity_disorder 0.03937
mhd.personality_disorder 0.01899
control 3.349
mhd.mania_hypomania_bipolar_or_manicdepression
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 31884
mhd.mania_hypomania_bipolar_or_manicdepression 31884
mhd.posttraumatic_stress_disorder_ptsd 0.01876
autism_spectrum_disorder 0.0301
mhd.attention_deficit_hyperactivity_disorder 0.03306
mhd.personality_disorder 0.01659
control 1.998
mhd.posttraumatic_stress_disorder_ptsd
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 31884
mhd.mania_hypomania_bipolar_or_manicdepression 31884
mhd.posttraumatic_stress_disorder_ptsd 31884
autism_spectrum_disorder 0.02409
mhd.attention_deficit_hyperactivity_disorder 0.02932
mhd.personality_disorder 0.01524
control 1.737
autism_spectrum_disorder
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 31884
mhd.mania_hypomania_bipolar_or_manicdepression 31884
mhd.posttraumatic_stress_disorder_ptsd 31884
autism_spectrum_disorder 31884
mhd.attention_deficit_hyperactivity_disorder 0.02851
mhd.personality_disorder 0.02595
control 3.405
mhd.attention_deficit_hyperactivity_disorder
depressive_disorders 31884
anxiety_disorders 31884
eating_disorders 31884
obsessive_compulsive_disorders 31884
psychotic_disorders 31884
mhd.mania_hypomania_bipolar_or_manicdepression 31884
mhd.posttraumatic_stress_disorder_ptsd 31884
autism_spectrum_disorder 31884
mhd.attention_deficit_hyperactivity_disorder 31884
mhd.personality_disorder 0.03093
control 1.723
mhd.personality_disorder control
depressive_disorders 31884 31884
anxiety_disorders 31884 31884
eating_disorders 31884 31884
obsessive_compulsive_disorders 31884 31884
psychotic_disorders 31884 31884
mhd.mania_hypomania_bipolar_or_manicdepression 31884 31884
mhd.posttraumatic_stress_disorder_ptsd 31884 31884
autism_spectrum_disorder 31884 31884
mhd.attention_deficit_hyperactivity_disorder 31884 31884
mhd.personality_disorder 31884 31884
control 1.736 31884
Create the correlation matrix plot using the corrplot package
#Correlations of retro impute and prepan ##Create function to use for all of the corplots
###Whole sample prepan retro correlation
Frequencies
prepan_retro_dat$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
EDGI 65 0.55 0.55 0.55 0.55
GLAD 11722 99.45 100.00 99.45 100.00
<NA> 0 0.00 100.00
Total 11787 100.00 100.00 100.00 100.00
Two-Step Estimates
Correlations/Type of Correlation:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 1 Pearson
gad.sum_score_retro 0.5088 1
phq.sum_score_prepan 0.6904 0.4475
phq.sum_score_retro 0.4451 0.7464
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan Pearson Pearson
gad.sum_score_retro Pearson Pearson
phq.sum_score_prepan 1 Pearson
phq.sum_score_retro 0.5898 1
Standard Errors/Numbers of Observations:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 11763 8447
gad.sum_score_retro 0.008065 8465
phq.sum_score_prepan 0.004832 0.008704
phq.sum_score_retro 0.008568 0.005105
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan 11737 8761
gad.sum_score_retro 8444 7530
phq.sum_score_prepan 11756 8758
phq.sum_score_retro 0.006969 8779
P-values for Tests of Bivariate Normality:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan
gad.sum_score_retro 6.356e-158
phq.sum_score_prepan 6.937e-175 4.192e-103
phq.sum_score_retro 2.829e-165 4.78e-131
phq.sum_score_prepan
gad.sum_score_prepan
gad.sum_score_retro
phq.sum_score_prepan
phq.sum_score_retro 6.359e-135
Warning in corCi(x = x, keys = keys, n.iter = n.iter, p = p, overlap = overlap, :
Finding confidence intervals from a correlation matrix, but n is not specified, arbitrarily set to 1000
Frequencies
whole_retro_prepan_scatter$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
EDGI 65 0.55 0.55 0.55 0.55
GLAD 11722 99.45 100.00 99.45 100.00
<NA> 0 0.00 100.00
Total 11787 100.00 100.00 100.00 100.00
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 32 rows containing non-finite values (stat_smooth).
Warning: Removed 32 rows containing missing values (geom_point).
Warning: Removed 32 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 37 rows containing non-finite values (stat_smooth).
Warning: Removed 37 rows containing missing values (geom_point).
Warning: Removed 37 rows containing missing values (geom_point).
###Little/much worse prepan retro correlation
[1] "gad.sum_score_prepan" "gad.sum_score_retro" "phq.sum_score_prepan"
[4] "phq.sum_score_retro"
Frequencies
prepan_retro_dat_worse$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------ --------- -------------- --------- --------------
EDGI 42 0.58 0.58 0.58 0.58
GLAD 7251 99.42 100.00 99.42 100.00
<NA> 0 0.00 100.00
Total 7293 100.00 100.00 100.00 100.00
Two-Step Estimates
Correlations/Type of Correlation:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 1 Pearson
gad.sum_score_retro 0.5416 1
phq.sum_score_prepan 0.69 0.4788
phq.sum_score_retro 0.4587 0.7399
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan Pearson Pearson
gad.sum_score_retro Pearson Pearson
phq.sum_score_prepan 1 Pearson
phq.sum_score_retro 0.5991 1
Standard Errors/Numbers of Observations:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 7277 7265
gad.sum_score_retro 0.008292 7281
phq.sum_score_prepan 0.006148 0.009045
phq.sum_score_retro 0.009793 0.00561
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan 7264 6503
gad.sum_score_retro 7264 6508
phq.sum_score_prepan 7276 6502
phq.sum_score_retro 0.007952 6517
P-values for Tests of Bivariate Normality:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan
gad.sum_score_retro 6.086e-111
phq.sum_score_prepan 1.351e-94 7.876e-82
phq.sum_score_retro 1.097e-99 3.302e-87
phq.sum_score_prepan
gad.sum_score_prepan
gad.sum_score_retro
phq.sum_score_prepan
phq.sum_score_retro 1.43e-89
Warning in corCi(x = x, keys = keys, n.iter = n.iter, p = p, overlap = overlap, :
Finding confidence intervals from a correlation matrix, but n is not specified, arbitrarily set to 1000
Frequencies
little_much_worse_retro_prepan$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
EDGI 65 0.55 0.55 0.55 0.55
GLAD 11722 99.45 100.00 99.45 100.00
<NA> 0 0.00 100.00
Total 11787 100.00 100.00 100.00 100.00
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 14 rows containing non-finite values (stat_smooth).
Warning: Removed 14 rows containing missing values (geom_point).
Warning: Removed 14 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 14 rows containing non-finite values (stat_smooth).
Warning: Removed 14 rows containing missing values (geom_point).
Warning: Removed 14 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 28 rows containing non-finite values (stat_smooth).
Warning: Removed 28 rows containing missing values (geom_point).
Warning: Removed 28 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 11 rows containing non-finite values (stat_smooth).
Warning: Removed 11 rows containing missing values (geom_point).
Warning: Removed 11 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 16 rows containing non-finite values (stat_smooth).
Warning: Removed 16 rows containing missing values (geom_point).
Warning: Removed 16 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 27 rows containing non-finite values (stat_smooth).
Warning: Removed 27 rows containing missing values (geom_point).
Warning: Removed 27 rows containing missing values (geom_point).
###Little/much better prepan retro correlation
[1] "gad.sum_score_prepan" "gad.sum_score_retro" "phq.sum_score_prepan"
[4] "phq.sum_score_retro"
Frequencies
prepan_retro_dat_better$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------ --------- -------------- --------- --------------
EDGI 7 0.59 0.59 0.59 0.59
GLAD 1179 99.41 100.00 99.41 100.00
<NA> 0 0.00 100.00
Total 1186 100.00 100.00 100.00 100.00
Two-Step Estimates
Correlations/Type of Correlation:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 1 Pearson
gad.sum_score_retro 0.4843 1
phq.sum_score_prepan 0.6497 0.4105
phq.sum_score_retro 0.3582 0.6968
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan Pearson Pearson
gad.sum_score_retro Pearson Pearson
phq.sum_score_prepan 1 Pearson
phq.sum_score_retro 0.5402 1
Standard Errors/Numbers of Observations:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan 1184 1182
gad.sum_score_retro 0.02228 1184
phq.sum_score_prepan 0.01684 0.02422
phq.sum_score_retro 0.0273 0.01611
phq.sum_score_prepan phq.sum_score_retro
gad.sum_score_prepan 1180 1021
gad.sum_score_retro 1180 1022
phq.sum_score_prepan 1182 1020
phq.sum_score_retro 0.0222 1023
P-values for Tests of Bivariate Normality:
gad.sum_score_prepan gad.sum_score_retro
gad.sum_score_prepan
gad.sum_score_retro 6.824e-10
phq.sum_score_prepan 2.617e-12 4.074e-07
phq.sum_score_retro 7.608e-10 1.671e-07
phq.sum_score_prepan
gad.sum_score_prepan
gad.sum_score_retro
phq.sum_score_prepan
phq.sum_score_retro 6.461e-11
Warning in corCi(x = x, keys = keys, n.iter = n.iter, p = p, overlap = overlap, :
Finding confidence intervals from a correlation matrix, but n is not specified, arbitrarily set to 1000
Frequencies
little_much_better_retro_prepan$Sample
Type: Character
Freq % Valid % Valid Cum. % Total % Total Cum.
----------- ------- --------- -------------- --------- --------------
EDGI 65 0.55 0.55 0.55 0.55
GLAD 11722 99.45 100.00 99.45 100.00
<NA> 0 0.00 100.00
Total 11787 100.00 100.00 100.00 100.00
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 3 rows containing non-finite values (stat_smooth).
Warning: Removed 3 rows containing missing values (geom_point).
Warning: Removed 3 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 1 rows containing non-finite values (stat_smooth).
Warning: Removed 1 rows containing missing values (geom_point).
Warning: Removed 1 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 4 rows containing non-finite values (stat_smooth).
Warning: Removed 4 rows containing missing values (geom_point).
Warning: Removed 4 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 4 rows containing non-finite values (stat_smooth).
Warning: Removed 4 rows containing missing values (geom_point).
Warning: Removed 4 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 6 rows containing non-finite values (stat_smooth).
Warning: Removed 6 rows containing missing values (geom_point).
Warning: Removed 6 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: w, h
`geom_smooth()` using formula 'y ~ x'
Warning: Removed 10 rows containing non-finite values (stat_smooth).
Warning: Removed 10 rows containing missing values (geom_point).
Warning: Removed 10 rows containing missing values (geom_point).
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
100% bar per diagnosis with percentages of contribution per sample
| Disorder_inc | Sample | n | Prop |
|---|---|---|---|
| Anxiety disorders | EDGI | 38 | 0.00 |
| Anxiety disorders | GLAD | 10089 | 0.67 |
| Anxiety disorders | NBR | 1752 | 0.12 |
| Anxiety disorders | RAMP | 3076 | 0.21 |
| Depressive disorders | EDGI | 47 | 0.00 |
| Depressive disorders | GLAD | 10607 | 0.63 |
| Depressive disorders | NBR | 2733 | 0.16 |
| Depressive disorders | RAMP | 3452 | 0.21 |
| Eating disorders | EDGI | 61 | 0.03 |
| Eating disorders | GLAD | 1320 | 0.64 |
| Eating disorders | NBR | 191 | 0.09 |
| Eating disorders | RAMP | 482 | 0.23 |
| OCDs | EDGI | 18 | 0.01 |
| OCDs | GLAD | 1585 | 0.69 |
| OCDs | NBR | 142 | 0.06 |
| OCDs | RAMP | 566 | 0.24 |
| Psychotic disorders | GLAD | 387 | 0.67 |
| Psychotic disorders | NBR | 37 | 0.06 |
| Psychotic disorders | RAMP | 152 | 0.26 |
| Bipolar disorders | EDGI | 3 | 0.00 |
| Bipolar disorders | GLAD | 816 | 0.73 |
| Bipolar disorders | NBR | 72 | 0.06 |
| Bipolar disorders | RAMP | 224 | 0.20 |
| PTSD | EDGI | 6 | 0.00 |
| PTSD | GLAD | 1795 | 0.67 |
| PTSD | NBR | 226 | 0.08 |
| PTSD | RAMP | 647 | 0.24 |
| Autism | EDGI | 6 | 0.01 |
| Autism | GLAD | 362 | 0.60 |
| Autism | NBR | 45 | 0.07 |
| Autism | RAMP | 191 | 0.32 |
| ADHD | EDGI | 2 | 0.01 |
| ADHD | GLAD | 191 | 0.56 |
| ADHD | NBR | 32 | 0.09 |
| ADHD | RAMP | 114 | 0.34 |
| Personality disorders | EDGI | 6 | 0.00 |
| Personality disorders | GLAD | 911 | 0.71 |
| Personality disorders | NBR | 76 | 0.06 |
| Personality disorders | RAMP | 295 | 0.23 |
| Controls | EDGI | 1 | 0.00 |
| Controls | GLAD | 139 | 0.01 |
| Controls | NBR | 9247 | 0.78 |
| Controls | RAMP | 2538 | 0.21 |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
Age bar plot for whole sample (not grouped) Summary dataset for age and display it as a bar plot
| age_category | n | Prop | order |
|---|---|---|---|
| 16-18 | 916 | 0.03 | 1 |
| 19-25 | 2376 | 0.07 | 2 |
| 26-35 | 4737 | 0.15 | 3 |
| 36-45 | 4418 | 0.14 | 4 |
| 46-55 | 6481 | 0.20 | 5 |
| 56-65 | 7437 | 0.23 | 6 |
| 66-70 | 2994 | 0.09 | 7 |
| 71-75 | 1887 | 0.06 | 8 |
| 76-80 | 503 | 0.02 | 9 |
| 81-85 | 98 | 0.00 | 10 |
| 86-90 | 26 | 0.00 | 11 |
| 91-100 | 6 | 0.00 | 12 |
| 100+ | 5 | 0.00 | 13 |
summary dataset with frequencies
| highest_education | n | freq |
|---|---|---|
| GCSE/CSE | 3896 | 0.12 |
| NVQ | 2092 | 0.07 |
| A-levels | 6258 | 0.20 |
| University | 18333 | 0.57 |
pie chart labels
Warning: Ignoring unknown parameters: face
Warning: Ignoring unknown parameters: face
Warning: Ignoring unknown aesthetics: face
pie chart - no labels
| Ethnicity_collapsed | n | freq |
|---|---|---|
| European | 27836 | 0.96 |
| Mixed or multiple ethnic origins | 502 | 0.02 |
| Asian or Asian British | 352 | 0.01 |
| African or African British | 116 | 0.00 |
| Other | 148 | 0.01 |
pie chart with only European label
Warning: Ignoring unknown parameters: face
Pie chart - no labels
| Gender_collapsed | n | freq |
|---|---|---|
| Male | 8853 | 0.28 |
| Female | 22686 | 0.71 |
| Non-binary/Self-defined | 345 | 0.01 |
Warning: Ignoring unknown parameters: face
Pie chart - only labelling two largest groups (male and female)
Warning: Ignoring unknown parameters: face
Pie chart - no labels
+++CH: Diagnosis, ethnicity, gender, age
| age_category | Sample | n | Prop |
|---|---|---|---|
| 16-18 | EDGI | 7 | 0.00 |
| 16-18 | GLAD | 330 | 0.01 |
| 16-18 | NBR | 10 | 0.00 |
| 16-18 | RAMP | 569 | 0.02 |
| 19-25 | EDGI | 17 | 0.00 |
| 19-25 | GLAD | 1445 | 0.05 |
| 19-25 | NBR | 298 | 0.01 |
| 19-25 | RAMP | 616 | 0.02 |
| 26-35 | EDGI | 21 | 0.00 |
| 26-35 | GLAD | 2667 | 0.08 |
| 26-35 | NBR | 1162 | 0.04 |
| 26-35 | RAMP | 887 | 0.03 |
| 36-45 | EDGI | 8 | 0.00 |
| 36-45 | GLAD | 2264 | 0.07 |
| 36-45 | NBR | 1443 | 0.05 |
| 36-45 | RAMP | 703 | 0.02 |
| 46-55 | EDGI | 4 | 0.00 |
| 46-55 | GLAD | 2604 | 0.08 |
| 46-55 | NBR | 2645 | 0.08 |
| 46-55 | RAMP | 1228 | 0.04 |
| 56-65 | EDGI | 5 | 0.00 |
| 56-65 | GLAD | 1745 | 0.05 |
| 56-65 | NBR | 3900 | 0.12 |
| 56-65 | RAMP | 1787 | 0.06 |
| 66-70 | EDGI | 3 | 0.00 |
| 66-70 | GLAD | 398 | 0.01 |
| 66-70 | NBR | 1934 | 0.06 |
| 66-70 | RAMP | 659 | 0.02 |
| 71-75 | GLAD | 208 | 0.01 |
| 71-75 | NBR | 1238 | 0.04 |
| 71-75 | RAMP | 441 | 0.01 |
| 76-80 | GLAD | 50 | 0.00 |
| 76-80 | NBR | 325 | 0.01 |
| 76-80 | RAMP | 128 | 0.00 |
| 81-85 | GLAD | 10 | 0.00 |
| 81-85 | NBR | 57 | 0.00 |
| 81-85 | RAMP | 31 | 0.00 |
| 86-90 | GLAD | 1 | 0.00 |
| 86-90 | NBR | 12 | 0.00 |
| 86-90 | RAMP | 13 | 0.00 |
| 91-100 | NBR | 2 | 0.00 |
| 91-100 | RAMP | 4 | 0.00 |
| 100+ | NBR | 3 | 0.00 |
| 100+ | RAMP | 2 | 0.00 |
| Sample | age_category | n | Prop |
|---|---|---|---|
| EDGI | 16-18 | 7 | 0.11 |
| EDGI | 19-25 | 17 | 0.26 |
| EDGI | 26-35 | 21 | 0.32 |
| EDGI | 36-45 | 8 | 0.12 |
| EDGI | 46-55 | 4 | 0.06 |
| EDGI | 56-65 | 5 | 0.08 |
| EDGI | 66-70 | 3 | 0.05 |
| GLAD | 16-18 | 330 | 0.03 |
| GLAD | 19-25 | 1445 | 0.12 |
| GLAD | 26-35 | 2667 | 0.23 |
| GLAD | 36-45 | 2264 | 0.19 |
| GLAD | 46-55 | 2604 | 0.22 |
| GLAD | 56-65 | 1745 | 0.15 |
| GLAD | 66-70 | 398 | 0.03 |
| GLAD | 71-75 | 208 | 0.02 |
| GLAD | 76-80 | 50 | 0.00 |
| GLAD | 81-85 | 10 | 0.00 |
| GLAD | 86-90 | 1 | 0.00 |
| NBR | 16-18 | 10 | 0.00 |
| NBR | 19-25 | 298 | 0.02 |
| NBR | 26-35 | 1162 | 0.09 |
| NBR | 36-45 | 1443 | 0.11 |
| NBR | 46-55 | 2645 | 0.20 |
| NBR | 56-65 | 3900 | 0.30 |
| NBR | 66-70 | 1934 | 0.15 |
| NBR | 71-75 | 1238 | 0.10 |
| NBR | 76-80 | 325 | 0.02 |
| NBR | 81-85 | 57 | 0.00 |
| NBR | 86-90 | 12 | 0.00 |
| NBR | 91-100 | 2 | 0.00 |
| NBR | 100+ | 3 | 0.00 |
| RAMP | 16-18 | 569 | 0.08 |
| RAMP | 19-25 | 616 | 0.09 |
| RAMP | 26-35 | 887 | 0.13 |
| RAMP | 36-45 | 703 | 0.10 |
| RAMP | 46-55 | 1228 | 0.17 |
| RAMP | 56-65 | 1787 | 0.25 |
| RAMP | 66-70 | 659 | 0.09 |
| RAMP | 71-75 | 441 | 0.06 |
| RAMP | 76-80 | 128 | 0.02 |
| RAMP | 81-85 | 31 | 0.00 |
| RAMP | 86-90 | 13 | 0.00 |
| RAMP | 91-100 | 4 | 0.00 |
| RAMP | 100+ | 2 | 0.00 |
| age_category | n_EDGI | n_GLAD | n_NBR | n_RAMP | Prop_EDGI | Prop_GLAD | Prop_NBR | Prop_RAMP |
|---|---|---|---|---|---|---|---|---|
| 16-18 | 7 | 330 | 10 | 569 | 0.11 | 0.03 | 0.00 | 0.08 |
| 19-25 | 17 | 1445 | 298 | 616 | 0.26 | 0.12 | 0.02 | 0.09 |
| 26-35 | 21 | 2667 | 1162 | 887 | 0.32 | 0.23 | 0.09 | 0.13 |
| 36-45 | 8 | 2264 | 1443 | 703 | 0.12 | 0.19 | 0.11 | 0.10 |
| 46-55 | 4 | 2604 | 2645 | 1228 | 0.06 | 0.22 | 0.20 | 0.17 |
| 56-65 | 5 | 1745 | 3900 | 1787 | 0.08 | 0.15 | 0.30 | 0.25 |
| 66-70 | 3 | 398 | 1934 | 659 | 0.05 | 0.03 | 0.15 | 0.09 |
| 71-75 | NA | 208 | 1238 | 441 | NA | 0.02 | 0.10 | 0.06 |
| 76-80 | NA | 50 | 325 | 128 | NA | 0.00 | 0.02 | 0.02 |
| 81-85 | NA | 10 | 57 | 31 | NA | 0.00 | 0.00 | 0.00 |
| 86-90 | NA | 1 | 12 | 13 | NA | 0.00 | 0.00 | 0.00 |
| 91-100 | NA | NA | 2 | 4 | NA | NA | 0.00 | 0.00 |
| 100+ | NA | NA | 3 | 2 | NA | NA | 0.00 | 0.00 |
| age_category | EDGI | GLAD | NBR | RAMP |
|---|---|---|---|---|
| 16-18 | 7 | 330 | 10 | 569 |
| 19-25 | 17 | 1445 | 298 | 616 |
| 26-35 | 21 | 2667 | 1162 | 887 |
| 36-45 | 8 | 2264 | 1443 | 703 |
| 46-55 | 4 | 2604 | 2645 | 1228 |
| 56-65 | 5 | 1745 | 3900 | 1787 |
| 66-70 | 3 | 398 | 1934 | 659 |
| 71-75 | 0 | 208 | 1238 | 441 |
| 76-80 | 0 | 50 | 325 | 128 |
| 81-85 | 0 | 10 | 57 | 31 |
| 86-90 | 0 | 1 | 12 | 13 |
| 91-100 | 0 | 0 | 2 | 4 |
| 100+ | 0 | 0 | 3 | 2 |
Warning in chisq.test(.): Chi-squared approximation may be incorrect
| statistic | p.value | parameter | method |
|---|---|---|---|
| 5554.159 | 0 | 36 | Pearson’s Chi-squared test |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
| Ethnicity_collapsed | Sample | n | Prop |
|---|---|---|---|
| European | EDGI | 60 | 0.00 |
| European | GLAD | 11213 | 0.35 |
| European | NBR | 9868 | 0.31 |
| European | RAMP | 6695 | 0.21 |
| Mixed or multiple ethnic origins | EDGI | 3 | 0.00 |
| Mixed or multiple ethnic origins | GLAD | 251 | 0.01 |
| Mixed or multiple ethnic origins | NBR | 118 | 0.00 |
| Mixed or multiple ethnic origins | RAMP | 130 | 0.00 |
| Asian or Asian British | EDGI | 1 | 0.00 |
| Asian or Asian British | GLAD | 89 | 0.00 |
| Asian or Asian British | NBR | 126 | 0.00 |
| Asian or Asian British | RAMP | 136 | 0.00 |
| African or African British | GLAD | 38 | 0.00 |
| African or African British | NBR | 46 | 0.00 |
| African or African British | RAMP | 32 | 0.00 |
| Other | EDGI | 1 | 0.00 |
| Other | GLAD | 104 | 0.00 |
| Other | RAMP | 43 | 0.00 |
| NA | GLAD | 27 | 0.00 |
| NA | NBR | 2871 | 0.09 |
| NA | RAMP | 32 | 0.00 |
| Sample | Ethnicity_collapsed | n | Prop |
|---|---|---|---|
| EDGI | European | 60 | 0.92 |
| EDGI | Mixed or multiple ethnic origins | 3 | 0.05 |
| EDGI | Asian or Asian British | 1 | 0.02 |
| EDGI | Other | 1 | 0.02 |
| GLAD | European | 11213 | 0.96 |
| GLAD | Mixed or multiple ethnic origins | 251 | 0.02 |
| GLAD | Asian or Asian British | 89 | 0.01 |
| GLAD | African or African British | 38 | 0.00 |
| GLAD | Other | 104 | 0.01 |
| GLAD | NA | 27 | 0.00 |
| NBR | European | 9868 | 0.76 |
| NBR | Mixed or multiple ethnic origins | 118 | 0.01 |
| NBR | Asian or Asian British | 126 | 0.01 |
| NBR | African or African British | 46 | 0.00 |
| NBR | NA | 2871 | 0.22 |
| RAMP | European | 6695 | 0.95 |
| RAMP | Mixed or multiple ethnic origins | 130 | 0.02 |
| RAMP | Asian or Asian British | 136 | 0.02 |
| RAMP | African or African British | 32 | 0.00 |
| RAMP | Other | 43 | 0.01 |
| RAMP | NA | 32 | 0.00 |
| Ethnicity_collapsed | n_EDGI | n_GLAD | n_NBR | n_RAMP | Prop_EDGI | Prop_GLAD | Prop_NBR | Prop_RAMP |
|---|---|---|---|---|---|---|---|---|
| European | 60 | 11213 | 9868 | 6695 | 0.92 | 0.96 | 0.76 | 0.95 |
| Mixed or multiple ethnic origins | 3 | 251 | 118 | 130 | 0.05 | 0.02 | 0.01 | 0.02 |
| Asian or Asian British | 1 | 89 | 126 | 136 | 0.02 | 0.01 | 0.01 | 0.02 |
| Other | 1 | 104 | NA | 43 | 0.02 | 0.01 | NA | 0.01 |
| African or African British | NA | 38 | 46 | 32 | NA | 0.00 | 0.00 | 0.00 |
| NA | NA | 27 | 2871 | 32 | NA | 0.00 | 0.22 | 0.00 |
| Ethnicity_collapsed | EDGI | GLAD | NBR | RAMP |
|---|---|---|---|---|
| European | 60 | 11213 | 9868 | 6695 |
| Mixed or multiple ethnic origins | 3 | 251 | 118 | 130 |
| Asian or Asian British | 1 | 89 | 126 | 136 |
| African or African British | 0 | 38 | 46 | 32 |
| Other | 1 | 104 | 0 | 43 |
| NA | 0 | 27 | 2871 | 32 |
Warning in chisq.test(.): Chi-squared approximation may be incorrect
| statistic | p.value | parameter | method |
|---|---|---|---|
| 4533.299 | 0 | 15 | Pearson’s Chi-squared test |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
| Gender_collapsed | Sample | n | Prop |
|---|---|---|---|
| Male | EDGI | 1 | 0.00 |
| Male | GLAD | 2031 | 0.06 |
| Male | NBR | 5613 | 0.18 |
| Male | RAMP | 1208 | 0.04 |
| Female | EDGI | 62 | 0.00 |
| Female | GLAD | 9460 | 0.30 |
| Female | NBR | 7379 | 0.23 |
| Female | RAMP | 5785 | 0.18 |
| Non-binary/Self-defined | EDGI | 2 | 0.00 |
| Non-binary/Self-defined | GLAD | 231 | 0.01 |
| Non-binary/Self-defined | NBR | 37 | 0.00 |
| Non-binary/Self-defined | RAMP | 75 | 0.00 |
| Sample | Gender_collapsed | n | Prop |
|---|---|---|---|
| EDGI | Male | 1 | 0.02 |
| EDGI | Female | 62 | 0.95 |
| EDGI | Non-binary/Self-defined | 2 | 0.03 |
| GLAD | Male | 2031 | 0.17 |
| GLAD | Female | 9460 | 0.81 |
| GLAD | Non-binary/Self-defined | 231 | 0.02 |
| NBR | Male | 5613 | 0.43 |
| NBR | Female | 7379 | 0.57 |
| NBR | Non-binary/Self-defined | 37 | 0.00 |
| RAMP | Male | 1208 | 0.17 |
| RAMP | Female | 5785 | 0.82 |
| RAMP | Non-binary/Self-defined | 75 | 0.01 |
| Gender_collapsed | n_EDGI | n_GLAD | n_NBR | n_RAMP | Prop_EDGI | Prop_GLAD | Prop_NBR | Prop_RAMP |
|---|---|---|---|---|---|---|---|---|
| Male | 1 | 2031 | 5613 | 1208 | 0.02 | 0.17 | 0.43 | 0.17 |
| Female | 62 | 9460 | 7379 | 5785 | 0.95 | 0.81 | 0.57 | 0.82 |
| Non-binary/Self-defined | 2 | 231 | 37 | 75 | 0.03 | 0.02 | 0.00 | 0.01 |
| Gender_collapsed | EDGI | GLAD | NBR | RAMP |
|---|---|---|---|---|
| Male | 1 | 2031 | 5613 | 1208 |
| Female | 62 | 9460 | 7379 | 5785 |
| Non-binary/Self-defined | 2 | 231 | 37 | 75 |
Warning in chisq.test(.): Chi-squared approximation may be incorrect
| statistic | p.value | parameter | method |
|---|---|---|---|
| 2686.677 | 0 | 6 | Pearson’s Chi-squared test |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
| highest_education | Sample | n | Prop |
|---|---|---|---|
| GCSE/CSE | EDGI | 7 | 0.00 |
| GCSE/CSE | GLAD | 1024 | 0.03 |
| GCSE/CSE | NBR | 1861 | 0.06 |
| GCSE/CSE | RAMP | 1004 | 0.03 |
| NVQ | EDGI | 3 | 0.00 |
| NVQ | GLAD | 868 | 0.03 |
| NVQ | NBR | 1221 | 0.04 |
| A-levels | EDGI | 20 | 0.00 |
| A-levels | GLAD | 2571 | 0.08 |
| A-levels | NBR | 2310 | 0.08 |
| A-levels | RAMP | 1357 | 0.04 |
| University | EDGI | 35 | 0.00 |
| University | GLAD | 6854 | 0.22 |
| University | NBR | 6956 | 0.23 |
| University | RAMP | 4488 | 0.15 |
| Sample | highest_education | n | Prop |
|---|---|---|---|
| EDGI | GCSE/CSE | 7 | 0.11 |
| EDGI | NVQ | 3 | 0.05 |
| EDGI | A-levels | 20 | 0.31 |
| EDGI | University | 35 | 0.54 |
| GLAD | GCSE/CSE | 1024 | 0.09 |
| GLAD | NVQ | 868 | 0.08 |
| GLAD | A-levels | 2571 | 0.23 |
| GLAD | University | 6854 | 0.61 |
| NBR | GCSE/CSE | 1861 | 0.15 |
| NBR | NVQ | 1221 | 0.10 |
| NBR | A-levels | 2310 | 0.19 |
| NBR | University | 6956 | 0.56 |
| RAMP | GCSE/CSE | 1004 | 0.15 |
| RAMP | A-levels | 1357 | 0.20 |
| RAMP | University | 4488 | 0.66 |
| highest_education | n_EDGI | n_GLAD | n_NBR | n_RAMP | Prop_EDGI | Prop_GLAD | Prop_NBR | Prop_RAMP |
|---|---|---|---|---|---|---|---|---|
| GCSE/CSE | 7 | 1024 | 1861 | 1004 | 0.11 | 0.09 | 0.15 | 0.15 |
| NVQ | 3 | 868 | 1221 | NA | 0.05 | 0.08 | 0.10 | NA |
| A-levels | 20 | 2571 | 2310 | 1357 | 0.31 | 0.23 | 0.19 | 0.20 |
| University | 35 | 6854 | 6956 | 4488 | 0.54 | 0.61 | 0.56 | 0.66 |
| highest_education | EDGI | GLAD | NBR | RAMP |
|---|---|---|---|---|
| GCSE/CSE | 7 | 1024 | 1861 | 1004 |
| NVQ | 3 | 868 | 1221 | 0 |
| A-levels | 20 | 2571 | 2310 | 1357 |
| University | 35 | 6854 | 6956 | 4488 |
Warning in chisq.test(.): Chi-squared approximation may be incorrect
| statistic | p.value | parameter | method |
|---|---|---|---|
| 1035.753 | 0 | 12 | Pearson’s Chi-squared test |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth
| key_worker | Sample | n | Prop |
|---|---|---|---|
| No key worker | EDGI | 42 | 0.00 |
| No key worker | GLAD | 6707 | 0.21 |
| No key worker | NBR | 8610 | 0.27 |
| No key worker | RAMP | 4806 | 0.15 |
| Key worker | EDGI | 23 | 0.00 |
| Key worker | GLAD | 4978 | 0.16 |
| Key worker | NBR | 4399 | 0.14 |
| Key worker | RAMP | 2223 | 0.07 |
| NA | GLAD | 37 | 0.00 |
| NA | NBR | 20 | 0.00 |
| NA | RAMP | 39 | 0.00 |
| Sample | key_worker | n | Prop |
|---|---|---|---|
| EDGI | No key worker | 42 | 0.65 |
| EDGI | Key worker | 23 | 0.35 |
| GLAD | No key worker | 6707 | 0.57 |
| GLAD | Key worker | 4978 | 0.42 |
| GLAD | NA | 37 | 0.00 |
| NBR | No key worker | 8610 | 0.66 |
| NBR | Key worker | 4399 | 0.34 |
| NBR | NA | 20 | 0.00 |
| RAMP | No key worker | 4806 | 0.68 |
| RAMP | Key worker | 2223 | 0.31 |
| RAMP | NA | 39 | 0.01 |
| key_worker | n_EDGI | n_GLAD | n_NBR | n_RAMP | Prop_EDGI | Prop_GLAD | Prop_NBR | Prop_RAMP |
|---|---|---|---|---|---|---|---|---|
| No key worker | 42 | 6707 | 8610 | 4806 | 0.65 | 0.57 | 0.66 | 0.68 |
| Key worker | 23 | 4978 | 4399 | 2223 | 0.35 | 0.42 | 0.34 | 0.31 |
| NA | NA | 37 | 20 | 39 | NA | 0.00 | 0.00 | 0.01 |
| key_worker | EDGI | GLAD | NBR | RAMP |
|---|---|---|---|---|
| No key worker | 42 | 6707 | 8610 | 4806 |
| Key worker | 23 | 4978 | 4399 | 2223 |
| NA | 0 | 37 | 20 | 39 |
Warning in chisq.test(.): Chi-squared approximation may be incorrect
| statistic | p.value | parameter | method |
|---|---|---|---|
| 324.3338 | 0 | 6 | Pearson’s Chi-squared test |
Warning: Ignoring unknown parameters: binwidth
Warning: Ignoring unknown parameters: binwidth